﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.User>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	修改用户信息
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>修改用户信息</h2>


    <p class="sys_create_btn">
        <%= Html.ActionLink("返回列表", "Index") %>
    </p>


    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:756px;">
            <tr>
                <th colspan="2">用户详细信息<%= Html.HiddenFor(model => model.Id) %></th>
            </tr>

            <tr>
                <td class="lab" style="width:110px;">所属堆场：</td>
                <td><%= Html.DropDownList("FactoryId", ViewData["factories"] as List<SelectListItem>, "请选择公司")%></td>
            </tr>

            <tr>
                <td class="lab">用户角色：</td>
                <td><%= Html.DropDownList("RoleId", ViewData["roles"] as List<SelectListItem>, "请选择角色")%></td>
            </tr>

            <tr>
                <td class="lab">登录帐号：</td>
                <td>
                    <%= Html.HiddenFor(model => model.Name) %>
                    <%= Html.DisplayTextFor(model => model.Name) %>
                </td>
            </tr>

            <tr>
                <td class="lab">用户名称：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.RealName) %>
                    <%= Html.ValidationMessageFor(model => model.RealName) %>
                </td>
            </tr>

            <tr>
                <td class="lab">固定电话：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.Phone) %>
                    <%= Html.ValidationMessageFor(model => model.Phone) %>
                </td>
            </tr>

            <tr>
                <td class="lab">手机号码：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.Mobile) %>
                    <%= Html.ValidationMessageFor(model => model.Mobile) %>
                </td>
            </tr>

            <tr>
                <td class="lab">电子邮箱：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.Email) %>
                    <%= Html.ValidationMessageFor(model => model.Email) %>
                </td>
            </tr>

        </table>
        
        <div class="submit_btn_area" style="margin-left:122px;">
            <input type="submit" value="提 交" />
        </div>

    <% } %>



</asp:Content>

